package unclassified.simple;

public class LCOF_05 {

    public String replaceSpace(String s) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == ' ') {
                sb.append("%20");
            } else {
                sb.append(s.charAt(i));
            }
        }

//        sb.delete(sb.length() - 3, sb.length() - 1);
        return sb.toString();
    }
}